
import drawdoc

import docs

#~ d = docs.getDocsFromSource(r'..\controls\djfield.py')


def writeDoc(strName, aData):
	strName += '.html'
	strHtml = drawdoc.drawdoc(aData)
	f = open('out\\'+strName,'w')
	f.write(strHtml)
	f.close()

def main():
	ad = docs.getDocsFromDirectory(r'..\controls')
	for aData in ad:
		writeDoc(aData.filename, aData)
	
main()